<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http:1//www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>列表</title>
</head>
<body>
	<h2>列表页</h2>
	<table border="1" cellspacing="0" cellpadding="0">
		<tr>
			<th>编号</th>
			<th>姓名</th>
			<th>性别</th>
			<th>出生日期</th>
			<th>电话号码</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${list }" var="c" varStatus="status">
			<tr>
				<td>${c.id }</td>
				<td>${c.userName }</td>
				<c:choose>
					<c:when test="${c.gender==1 }">
						<td>男</td>
					</c:when>
					<c:otherwise>
						<td>女</td>
					</c:otherwise>
				</c:choose>
				<td>${c.birth }</td>
				<td>${c.tel }</td>
				<td>
					<a href="add.jsp">增加</a>
					<a href="deleteCustomer.do?id=${c.id }">删除</a>
					<a href="preUpdateCustomer.do?id=${c.id }">修改</a>
					<a href="queryCustomer.do?id=${c.id }">查询</a>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>